package com.pro.controller;

import com.pro.pojo.JsonData;
import com.pro.service.JsMenuDeptService;
import lombok.Data;
import org.checkerframework.checker.units.qual.C;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author 祖铭泽
 * @Date 2022/1/7/0007
 * @description 部门和导航栏 中间表 控制层
 */
@Controller
@RequestMapping(value = "/jsMenu")
public class JsMenuDeptController {
    @Autowired
    private JsMenuDeptService jsMenuDeptService;
    /**
     * @Author 祖铭泽
     * @Date 2022/1/7/0007
     * @description 获取所有导航栏
     */
    @RequestMapping(value = "/getJsMenus")
    @ResponseBody
    public JsonData getMenus(Integer userId){
        return jsMenuDeptService.getJsMenuDeptByUserId(userId);
    }

}
